﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcBlog.ViewModels.LoginViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	LogIn
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>LogIn</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(false, "Die Authentifizierung ist fehlgeschlagen.") %>
            
             <div class="editor-label">
                <%: Html.LabelFor(model => model.UserName) %>
            </div>

            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.UserName) %>
<%--                <%: Html.ValidationMessageFor(model => model.UserName)%>--%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Password) %>
            </div>

            <div class="editor-field">
                <%: Html.PasswordFor(model => model.Password) %>
<%--                <%: Html.ValidationMessageFor(model => model.Password)%>--%>
            </div>
            
            <p>
                <input type="submit" value="Login" />
            </p>

    <% } %>

    <div>
        <%: Html.ActionLink("Passwort vergessen?", "ForgetPassword") %>
    </div>
    

</asp:Content>

